using GameBasic;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace VCity
{
    public class AnimSwitcher : MonoBehaviour
    {
        public static readonly int AnimSiwtch = Animator.StringToHash("AnimSwitch");

        public TimeCounter timer = new TimeCounter(90);
        public Animator animator;

        // Update is called once per frame
        void Update()
        {
            if (timer.UpdateRestart())
            {
                animator.SetFloat(AnimSiwtch, Random.Range(0, 2));
            }
        }

    }
}